package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {
    @Insert("INSERT INTO `tb_user` (`phone_number`, `password`,  `nick_name`) VALUES (#{phoneNumber}, #{password},#{nickName})")
    public boolean register(@Param(value = "phoneNumber") String phoneNumber, @Param(value = "password") String password, @Param(value = "nickName") String nickName);
}
